<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <body>
        <ui:composition template="/template.xhtml">
            <ui:define name="title">CS - Login</ui:define>
            <ui:define name="subtitle">Login</ui:define>
            <ui:define name="content">
                
                <center>
                    <h4><h:outputLabel value="Entre com o seu usuário e senha"/></h4>
                </center>
                <p/>
                
                <h:form>
                    <h:panelGrid columns="1" >
                        <h:panelGroup>
                            <h:outputLabel value="Nome" /><br/>
                            <h:inputText id="nome" value="#{loginMB.nome}" size="40"/>
                        </h:panelGroup>
                        <h:panelGroup>
                                <h:outputLabel value="Senha" /><br/>
                                <h:inputSecret id="senha" value="#{loginMB.senha}" size="30" />
                        </h:panelGroup>
                        <samp/>
                        <h:commandButton action="#{loginMB.login}" value="Entrar" />
                        
                    </h:panelGrid>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>

</html>

